<html>
<head><meta charset="utf-8"><title>Print output from UI test? · t-compiler/help · Zulip Chat Archive</title></head>
<h2>Stream: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/index.html">t-compiler/help</a></h2>
<h3>Topic: <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html">Print output from UI test?</a></h3>

<hr>

<base href="https://rust-lang.zulipchat.com">

<head><link href="https://rust-lang.github.io/zulip_archive/style.css" rel="stylesheet"></head>

<a name="215971051"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971051" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971051">(Nov 07 2020 at 20:06)</a>:</h4>
<p>I want to see debug logging from a test that passed. I tried setting <code>RUSTDOC_LOG</code>, but it didn't output anything - I think it's being swallowed by libtest. I then tried <code>--test-args --no-capture</code>, but that gave a parse error:</p>
<div class="codehilite"><pre><span></span><code>thread &#39;main&#39; panicked at &#39;UnrecognizedOption(&quot;no-capture&quot;)&#39;, src/tools/compiletest/src/main.rs:143:19
</code></pre></div>
<p>Is there a way to see this debug output? Running rustdoc directly doesn't work because this test uses <code>aux-build</code>.</p>



<a name="215971184"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971184" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971184">(Nov 07 2020 at 20:09)</a>:</h4>
<p>I tried intentionally making the test fail and that also didn't work :/</p>



<a name="215971229"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971229" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971229">(Nov 07 2020 at 20:10)</a>:</h4>
<p><span class="user-mention" data-user-id="116122">@simulacrum</span> maybe you have ideas?</p>



<a name="215971240"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971240" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971240">(Nov 07 2020 at 20:10)</a>:</h4>
<p>ahh I needed <code>-vv</code></p>



<a name="215971244"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971244" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971244">(Nov 07 2020 at 20:10)</a>:</h4>
<p>that was not intuitive</p>



<a name="215971261"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971261" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> simulacrum <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971261">(Nov 07 2020 at 20:11)</a>:</h4>
<p>We can likely add no-capture to compiletest.</p>



<a name="215971329"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971329" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971329">(Nov 07 2020 at 20:12)</a>:</h4>
<p>don't have time right now but I'll open an issue</p>



<a name="215971401"></a>
<h4><a href="https://rust-lang.zulipchat.com#narrow/stream/182449-t-compiler/help/topic/Print%20output%20from%20UI%20test%3F/near/215971401" class="zl"><img src="https://rust-lang.github.io/zulip_archive/assets/img/zulip.svg" alt="view this post on Zulip" style="width:20px;height:20px;"></a> Joshua Nelson <a href="https://rust-lang.github.io/zulip_archive/stream/182449-t-compiler/help/topic/Print.20output.20from.20UI.20test.3F.html#215971401">(Nov 07 2020 at 20:14)</a>:</h4>
<p><a href="https://github.com/rust-lang/rust/issues/78850">https://github.com/rust-lang/rust/issues/78850</a></p>



<hr><p>Last updated: Aug 07 2021 at 22:04 UTC</p>
</html>